<?$request = Zend_Controller_Front::getInstance()->getRequest();
$controller = $request->getControllerName();
$action = $request->getActionName();
$addfix=false;
if ($controller=='issue'&&$action=='view') $addfix=true;
?>
<div class="main-menu" <? if ($addfix) echo 'style="width:1206px;"';?>>
   <span class="menu-begin"></span>

    <ul>
        <li class="<? if ($addfix) echo 'fixforli'?>"><a href="/">Главная</a></li>
        <li class="<? if ($addfix) echo 'fixforli'?>"><a href="/news">Новости</a></li>
        <li class="<? if ($addfix) echo 'fixforli'?>"><a href="/issue">Архив номеров</a></li>
        <li class="<? if ($addfix) echo 'fixforli'?>"><a href="/ad">Объявления</a></li>
            <?php if ($pdf = $this->lastIssue()): ?>
            <li class="<? if ($addfix) echo 'fixforli'?>"><a href="/issue/view/id/<?php echo $pdf['id'] ?>">Новый номер</a></li>
            <?php endif; ?>
        <li class="<? if ($addfix) echo 'fixforli'?>"><a href="/index/about">О нас</a></li>
        <li class="<? if ($addfix) echo 'fixforli'?>"><a href="/index/contacts">Контакты</a></li>
    </ul>

<!--    <div style="width: 250px;float: right;text-align: right;">-->
<!--        <form style="margin: 0;" action="/search/news" class="form-search"><input style="margin-right: 5px;margin-top: 4px;"-->
<!--                                                                      class="search-query" type="text" name="q" id="q"-->
<!--                                                                      value="" placeholder="Поиск на сайте..."></form>-->
<!--    </div>-->

</div>
 <?if (!$addfix):?>
    <div class="znak">
                <div class="nogki"></div>
                <div class="registerit"><a href="/register">Регистрация</a></div>
    </div>
<?endif?>